package com.thingsgrid.application.wrapper;

import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import com.thingsgrid.application.entity.AppApi;
import com.thingsgrid.application.vo.AppApiVO;

/**
 * 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2019-08-13
 */
public class AppApiWrapper extends BaseEntityWrapper<AppApi, AppApiVO>  {

	public static AppApiWrapper build() {
		return new AppApiWrapper();
 	}

	@Override
	public AppApiVO entityVO(AppApi appApi) {
		AppApiVO appApiVO = BeanUtil.copy(appApi, AppApiVO.class);

		return appApiVO;
	}

}
